Skip to content

Conversation

@jgao54
Copy link
Contributor

@jgao54 jgao54 commented Jul 7, 2025

  • Check mongo version for validation.
  • Small refactors to use bson struct tags for deserialization.
  • Extract shared logic to shared/mongo/validation.go
  • Default read preference mode to SecondaryPreferred, which read from primary only if secondary does not exists -- we should still support read from primary via uri if user prefers, will work on this as a subsequent PR as we separate out username/password from rest of uri.

Test: locally tested deserialization.

@jgao54 jgao54 requested review from heavycrystal and serprex July 7, 2025 21:42
@jgao54 jgao54 enabled auto-merge (squash) July 7, 2025 22:50
@jgao54 jgao54 merged commit 1d6a46a into main Jul 8, 2025
11 checks passed
@jgao54 jgao54 deleted the version-check branch July 8, 2025 04:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants